package com.edu.entiy;

public class Book {
	private int bookId;//书籍id
	private String bookName;//书籍名称
	private int card;//书籍类型id
	private String author;//书籍作者姓名
	private int bookNum;//书籍数量
	private String press;//出版社
	private String typeName;//书籍类型
	private int times;//被借阅次数
	public Book() {
		super();
	}
	
	public Book(int bookId, String bookName, int card, String author, int bookNum, String press, String typeName,
			int times) {
		super();
		this.bookId = bookId;
		this.bookName = bookName;
		this.card = card;
		this.author = author;
		this.bookNum = bookNum;
		this.press = press;
		this.typeName = typeName;
		this.times = times;
	}
	
	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public int getCard() {
		return card;
	}

	public void setCard(int card) {
		this.card = card;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public int getBookNum() {
		return bookNum;
	}

	public void setBookNum(int bookNum) {
		this.bookNum = bookNum;
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public int getTimes() {
		return times;
	}

	public void setTimes(int times) {
		this.times = times;
	}

	@Override
	public String toString() {
		return "Book [bookId=" + bookId + ", bookName=" + bookName + ", card=" + card + ", author=" + author
				+ ", bookNum=" + bookNum + ", press=" + press + ", typeName=" + typeName + ", times=" + times + "]";
	}
	
}
